package com.itmg.analyze.jp.model;

/**
 *  url参数 getURLPara获得匹配好的url   Amazon
 * @author Yunhong Chen
 * */
public class AmazonSearchParamModel {
	private static final long serialVersionUID = 1L;
	
	//Common Request Parameters
	private String service ;  //必须的
	private String aWSAccessKeyId; //必须的
	private String operation; //必须的
	private String condition;
	private String responseGroup; //必须
	private String searchIndex; //必须的
	private String contentType;
	private String merchantId;
	private String associateTag; 
	private String style;
	private String validate ;
	private String version;
	private String xMLEscaping;
	private String itemPage;   //页数
	private String keywords; //关键字
	private String title;
	private String sort;  //排序
	private String maximumPrice; 
	private String minimumPrice;

	public AmazonSearchParamModel() {
	}

	public String getAssociateTag() {
		return associateTag;
	}


	public void setAssociateTag(String associateTag) {
		this.associateTag = associateTag;
	}


	public String getAWSAccessKeyId() {
		return aWSAccessKeyId;
	}


	public void setAWSAccessKeyId(String accessKeyId) {
		aWSAccessKeyId = accessKeyId;
	}


	public String getContentType() {
		return contentType;
	}


	public void setContentType(String contentType) {
		this.contentType = contentType;
	}


	public String getMerchantId() {
		return merchantId;
	}


	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}


	public String getOperation() {
		return operation;
	}


	public void setOperation(String operation) {
		this.operation = operation;
	}


	public String getService() {
		return service;
	}


	public void setService(String service) {
		this.service = service;
	}


	public String getSearchIndex() {
		return searchIndex;
	}


	public void setSearchIndex(String searchIndex) {
		this.searchIndex = searchIndex;
	}


	public String getStyle() {
		return style;
	}


	public void setStyle(String style) {
		this.style = style;
	}


	public String getValidate() {
		return validate;
	}


	public void setValidate(String validate) {
		this.validate = validate;
	}


	public String getVersion() {
		return version;
	}


	public void setVersion(String version) {
		this.version = version;
	}


	public String getXMLEscaping() {
		return xMLEscaping;
	}


	public void setXMLEscaping(String escaping) {
		xMLEscaping = escaping;
	}


	public String getCondition() {
		return condition;
	}


	public void setCondition(String condition) {
		this.condition = condition;
	}


	public String getResponseGroup() {
		return responseGroup;
	}


	public void setResponseGroup(String responseGroup) {
		this.responseGroup = responseGroup;
	}


	public String getItemPage() {
		return itemPage;
	}


	public void setItemPage(String itemPage) {
		this.itemPage = itemPage;
	}


	public String getKeywords() {
		return keywords;
	}


	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getSort() {
		return sort;
	}


	public void setSort(String sort) {
		this.sort = sort;
	}


	public String getMaximumPrice() {
		return maximumPrice;
	}


	public void setMaximumPrice(String maximumPrice) {
		this.maximumPrice = maximumPrice;
	}


	public String getMinimumPrice() {
		return minimumPrice;
	}


	public void setMinimumPrice(String minimumPrice) {
		this.minimumPrice = minimumPrice;
	}


	public String getURLPara(){
		String url = "";
		if(service != null){
			url += "?Service="+service;
		}
		if(aWSAccessKeyId != null){
			url += "&AWSAccessKeyId="+aWSAccessKeyId;
		}
		if(operation != null){
			url += "&Operation="+operation;
		}
		if(condition != null){
			url += "&Condition="+condition;
		}
		if(responseGroup != null){
			url += "&ResponseGroup="+responseGroup;
		}
		if(searchIndex != null){
			url += "&SearchIndex="+searchIndex;
		}
		if(contentType != null){
			url += "&ContentType="+contentType;
		}
		if(merchantId != null){
			url += "&MerchantId="+merchantId;
		}
		if(associateTag != null){
			url += "&AssociateTag="+associateTag;
		}
		if(style != null){
			url += "&Style="+style;
		}
		if(validate != null){
			url += "&Validate="+validate;
		}
		if(version != null){
			url += "&Version="+version;
		}
		if(xMLEscaping != null){
			url += "&XMLEscaping="+xMLEscaping;
		}
		if(keywords != null){
			url += "&Keywords="+keywords;
		}
		if(itemPage != null){
			url += "&ItemPage="+itemPage;
		}
		if(title != null){
			url += "&Title="+title;
		}
		if(sort != null){
			url += "&Sort="+sort;
		}
		if(maximumPrice != null){
			url += "&MaximumPrice="+maximumPrice;
		}
		if(minimumPrice != null){
			url += "&MinimumPrice="+minimumPrice;
		}
		return url;
	}
	
}
